package mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import pojo.Account;

import java.util.List;

public interface AccountMapper {
    @Insert("insert into account(name,money) values(#{name},#{money})")
    public void save(Account account);
    @Select("select * from account")
    public List<Account> findAll();
}
